/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mp.appApi.util;

import java.net.URL;

/**
 * @Date 130919
 * @author vannh
 */
public class FileUtils {
    public static String getClassPath(){
        String classPath;
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        URL url = classLoader.getResource("");
        
        classPath = url.getPath();
        
        return classPath;
    }
    
    public static String getFullPath(String relativePath){
        String classPath;
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        URL url = classLoader.getResource(relativePath);
        
        classPath = url.getPath();
        
        return classPath;
    }
}
